<html>
	<head>
		<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
		<script src="autoFit.js"></script>
	</head>
	<body>
		<img id="imgA" class="imageClass1" src="hight.jpg"/><br/><br/>
		<img id="imgB" class="imageClass2" src="width.jpg"/><br/><br/>
		<img id="imgC" class="imageClass2" src="square.jpg"/>

		<script>
			$('#imgA').autoFit(200,200);
			$('.imageClass2').autoFit(100,100);
		</script>
	</body>
</html>
